//
//  WDScanCodesViewController.m
//  wd-serviceapp
//
//  Created by Bin Tang on 2024/8/2.
//

#import "WDScanCodesViewController.h"
#import "WDScanCodesViewModel.h"

@interface WDScanCodesViewController ()
@property (nonatomic, strong) WDScanCodesViewModel *viewModel;
@end

@implementation WDScanCodesViewController

- (void)dealloc {
    debugMethod();
    
}

- (void)initWithVar {
    [super initWithVar];
    
}

- (void)initWithNavBar {
    [super initWithNavBar];
    
    CGRect frame = CGRectMake(0, 0, 60, 30);
    UIButton *btnRight = [UIButton createWithButton:nil frame:frame font:FONTSIZE(15) target:self action:@selector(actionWithRight:) propertiesBlock:^(UIButton * _Nonnull button) {
        [button setTitle:@"哈哈" forState:UIControlStateNormal];
        [button setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    }];
    UIBarButtonItem *rightItem = [[UIBarButtonItem alloc] initWithCustomView:btnRight];
    self.navigationItem.rightBarButtonItem = rightItem;
}

- (void)initWithSubView {
    [super initWithSubView];
    
}

- (void)actionWithRight:(id)sender {
    NSDictionary *params = @{@"inputType": @(1)};
    UIViewController *vc = [[TYZRouter sharedInstance] getInputVinPlateNumberVC:params];
    [TYZJumpVCManager pushBaseVC:self pushVC:vc];
}

@end
